package org.dromara.pay.domain.vo;

import org.dromara.pay.domain.PayActivityRegistration;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.system.domain.SysUser;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.xhlj.domain.XhljActivity;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 活动报名视图对象 pay_activity_registration
 *
 * @author yf
 * @date 2024-07-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayActivityRegistration.class)
public class PayActivityRegistrationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 报名表id
     */
    @ExcelProperty(value = "报名表id")
    private Integer registrationId;
    /**
     * 报名状态（0=待审核，1=已审核，2=待付款，3=未到场，4=已到场）
     */
    @ExcelProperty(value = "报名状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "registration_status")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "pay_activity_registration", mapper = "registrationStatus")
    private String registrationStatusDictData;
    private String registrationStatus;
    /**
     * 用户wx_user（西湖论剑用户）
     */
    @ExcelProperty(value = "用户wx_user")
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private Object wxUser;
    private Integer createBy;
    /**
     * 活动id
     */
    @ExcelProperty(value = "活动id")
    @Translation(type = XhljActivity.TRANS_ID_TO_VO, mapper = "activityId")
    private Object activity;
    private Integer activityId;
    /**
     * 报名途径（0=微信公众号，1=微信小程序，2=大会官网）
     */
    @ExcelProperty(value = "报名途径", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "registration_way")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "pay_activity_registration", mapper = "registrationWay")
    private String registrationWayDictData;
    private String registrationWay;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
